package net.googlecode.demenkov.dao;

import net.googlecode.demenkov.domains.University;

import java.util.List;

/**
 * DAO for actions with universities
 *
 * @author Demenkov Yura
 */
public interface UniversityDAO extends GenericDAO<University, Integer> {
    /**
     * Finds university by universityname in database
     *
     * @param universityName
     * @return university, if there is university with such name in database or null if no
     */
    public University findUniversityByUniversityName(String universityName);

    /**
     * Gets all universities from database
     *
     * @return list of universities
     */
    public List<University> getAllUniversities();
}
